//
//  SCBottomRefreshView.m
//  Mutal
//
//  Created by TonyStart on 16/10/26.
//  Copyright © 2016年 com.wx. All rights reserved.
//

#import "SCBottomRefreshView.h"

@interface SCBottomRefreshView()
@property(nonatomic,strong)UILabel *msgLabel;
@end

@implementation SCBottomRefreshView


- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self setupUI];
    }
    return self;
}

-(void)changeContentWithRefreshState:(SCRefreshState) state{
    if (state == Normal) {
        self.msgLabel.text = @"再拉点....";
    }else if(state == Pulling){
        
        self.msgLabel.text = @"松开后开始刷新";
    }else{
        
        self.msgLabel.text = @"正在刷新..";
    }
}
-(void)setupUI{
    _msgLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 200, 20)];
    _msgLabel.font = [UIFont systemFontOfSize:17];
    _msgLabel.text =@"再拉点....";
    _msgLabel.textAlignment = NSTextAlignmentCenter;
    _msgLabel.center = CGPointMake([UIScreen mainScreen].bounds.size.width/2, 20);
    [self addSubview:_msgLabel];
}

@end
